<?php
session_start();

require_once (dirname(__file__) . "/system/ErrorHandler.php");
require_once (dirname(__file__) . "/config.php");
require_once (dirname(__file__) . "/system/Core.php");

try {
    $FMSConfig = new FMSConfig();
    $FMSCore = new Core($FMSConfig);

    $FMSCore->start();
    $FMSCore->render();
}
catch (FMSException$e) {
    echo $e->display();
}

?>